package com.cat.service.impl;

import com.cat.dao.AdminDao;
import com.cat.pojo.Admin;
import com.cat.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;
import java.util.List;


@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminDao adminDao;
    public Admin login(String admin_name, String admin_pass) {


        return adminDao.login(admin_name,admin_pass);
    }

    public List getall() {
        return adminDao.getall();
    }
}
